<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>大学生旅游网,中国领先旅游分销平台|门票分销|线路分销-商户注册</title>
<link href="style/common2.css" type="text/css" rel="stylesheet" />
<link href="style/mainStyle.css" type="text/css" rel="stylesheet" />
<script src="js/jquery-1.5.1.min.js" type="text/javascript"></script>
<script src="js/PCASClass.js" type="text/javascript" charset="gb2312"></script>
</head>

<body class="login_body">

<div class="login_warp">
	<!--登录顶部导航-->
	<?php include ADMINI_TPL_H."public/t_head.html";?>
    
    <!--登录框-->
    <div class="reg_main">
    	<div class="reg_title">带 <span>*</span> 键为必填项  </div>
        <div class="reg_cont">
        <form name="regF" id="regF" method="post" action="register.php?act=reg">
        	<table>
            	<tr>
                	<td id="left_content">
                    	<table width="625" height="307" class="reg_info" id="user_info">
                        	<tr>
                            	<td colspan="4">
                                	<div class="user_name">账户信息</div>
                                   	
                                </td>
                            </tr>
                            <tr>
                            	<td class="first_left_cell" ><font color="#ff0000">*</font>登录账户：</td>
                               	<td colspan="3"><input type="text" value="" name="data[mem_name]" id="username" notnull="true" maxlength="15" class="large_input" onblur="usernameChk(this.value)" /><span id="user_id_div">&nbsp;&nbsp;只能为字母和数字</span></td>
                            </tr>
                            <tr>
                            	<td  class="first_left_cell"><font color="#FF0000">*</font>输入密码：</td>
                               	<td colspan="3"><input  type="password" value="" name="data[mem_pwd]" id="password"  notnull="true"  maxlength="15" class="large_input" /><span>&nbsp;&nbsp;请输入密码</span></td>
                          	 </tr>
                             <tr>
                             	<td class="first_left_cell"><font color="#FF0000">*</font>确认密码：</td>
                               	<td colspan="3"><input  type="password" value="" name="repassword" id="repassword" notnull="true"  maxlength="15"  class="large_input" /><span id="repassword_div">&nbsp;&nbsp;两次密码请输入一致</span></td>
                             </tr>
                             <tr>
                             	<td colspan="4">
                                	<div class="user_name">企业信息</div>
                                   	
                                </td>
                             </tr>
                             <tr>
                             	<td class="first_left_cell"><font color="#FF0000">*</font>公司名称： </td>
                                <td colspan="3"><input type="text" value="" name="data[companyname]" id="companyname"  notnull="true"  maxlength="100" class="company_addr_input" style="width:300px;" /></td>
                             </tr>
                             <tr>
                             	<td class="first_left_cell"><font color="#FF0000">*</font>联&nbsp;系&nbsp;人： </td>
                                <td><input type="text" value="" name="data[contact]" id="contact" notnull="true" maxlength="30" class="small_input"/></td>
                                <td  class="first_left_cell"><font color="#FF0000"></font>&nbsp;联系电话： </td>
                                <td><input type="text"  value="" name="data[phone]"  maxlength="30"  class="small_input"/></td>
                             </tr>
                             <tr>
                             	<td  class="first_left_cell"><font color="#FF0000">*</font>联系手机： </td>
                                <td><input type="text" value="" name="data[mobile]" id="mobile" notnull="true"  maxlength="11" title="必须填写，找回密码的时候密码将发送到该手机" class="small_input" /></td>
                                <td class="first_left_cell"><font color="#FF0000">*</font>Q&nbsp;Q&nbsp;号码： </td>
                                <td><input type="text" name="data[link_qq]" id="link_qq"  maxlength="15" notnull="true" title="注册成功后我们的客服会直接加您QQ以便沟通。"  class="small_input" /></td>
                            </tr>
                            <tr>
                           		<td class="first_left_cell"><font color="#FF0000">*</font>淘宝店铺网址： </td>
                                <td colspan="3">
                                	<input type="text" value="" name="data[taobao_url]" id="taobao_url"  notnull="true"  maxlength="100" class="company_addr_input" style="width:300px;" /> <span style="color:#999;">格式：http://pingmeiguan.taobao.com</span>
                                </td>
                            </tr>
                            <tr>
                            	<td class="first_left_cell">&nbsp;传真号码： </td>
                                <td ><input type="text" name="data[fax]" maxlength="30" class="small_input"/></td>
                                <td class="first_left_cell">&nbsp;电子邮箱： </td>
                                <td><input type="text" name="data[email]" id="link_email" maxlength="50" class="small_input"/></td>
                           </tr>
                           <tr>
                           		<td class="first_left_cell">&nbsp;所在城市： </td>
                                <td colspan="3">
                                	<select name="data[mem_province]"></select><select name="data[mem_city]"></select>
                                </td>
                           </tr>
                           <tr>
                           	<td class="first_left_cell">&nbsp;公司地址： </td>
                            <td colspan="3"><input type="text" value="" name="data[companyaddr]"   maxlength="100" class="company_addr_input" /></td>
                           </tr>

                           <tr>
                          		<td class="first_left_cell">&nbsp;公司业务： </td>
                                <td  colspan="3">
                                	<textarea name="data[companyMainBusiness]" rows="5"  class="business_area"  ></textarea>
                                    <div>
                                    	<input type="checkbox" id="agree" value="1" checked /><span>同意大学生旅游网</span>
                                		<a href="#" class="agreement_link" target="_blank">分销合作协议</a>
                                    </div>
                                </td>
                           </tr>
                           <tr>
                                <td colspan="4" align="center">
                                	<input type="button" class="reg_submit" value="" onclick="regsub();"/>
                                </td>
                           </tr>
                        </table>
                  </td>
                </tr>
            </table>
         </form>   
        </div>
    </div>
    <div class="reg_login">
    	<p class="rl_p_1">已经有万座网账号？</p>
        <p class="rl_p_2"><a href="index.php"></a></p>
    </div>
    <div class="clear"></div>
    
    <!--资料下载-->
    <div class="download">
    	<span class="download_t">资料下载：</span>&nbsp;&nbsp;&nbsp;
        <a href="#">分销商使用手册下载</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="#">分销商帮助说明</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="#">网络分销商接口文档下载</a>
    </div>
    
    <!--登录底部-->
    <?php include ADMINI_TPL_H."public/t_foot.html";?>
</div>
<script language="javascript" defer>
new PCAS("data[mem_province]","data[mem_city]","河南","郑州市");
/*验证码-产生随机数*/
function GetRndNum(Min,Max){
	var Range = Max - Min;
	var Rand = Math.random();
	return(Min + Math.round(Rand * Range));
}
function usernameChk(val){
	$.get("register.php?act=namechk&RndNum="+GetRndNum(),{'value':val},
		function(data){
			if(data>0){
				$("#user_id_div").html('<span style="color:#f00;">&nbsp;&nbsp;用户名已经被注册了</span>');	
			}else{
				$("#user_id_div").html('&nbsp;&nbsp;用户名可以使用');		
			}																	
		}
	);	
}
function regsub(){
	if($("#username").val()==''){
		alert('请填写用户名！');	
		$("#username").focus();
		return false;
	}
	if($("#password").val()==''){
		alert('请填写密码！');
		$("#password").focus();
		return false;
	}
	if($("#repassword").val()==''){
		alert('请再次填写密码！');
		$("#repassword").focus();
		return false;
	}
	if($("#password").val()!=$("#repassword").val()){
		alert('2次输入密码不一样');	
		$("#repassword").focus();
		return false;
	}
	if($("#companyname").val()==''){
		alert('请填写公司名称！');
		$("#companyname").focus();
		return false;
	}
	if($("#contact").val()==''){
		alert('请填写联系人名称！');
		$("#contact").focus();
		return false;
	}
	if($("#mobile").val()==''){
		alert('请填写联系手机！');
		$("#mobile").focus();
		return false;
	}
	if($("#link_qq").val()==''){
		alert('请填写QQ！');
		$("#link_qq").focus();
		return false;
	}
	if($("#taobao_url").val()==''){
		alert('请填写您的淘宝店铺网址！');
		$("#taobao_url").focus();
		return false;
	}
	$("#regF").submit();
}
</script>

<!-- 7caihu.com Baidu tongji analytics -->
<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");

document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3Fb8797ecb21d1ccb839c35b190277a0cd' type='text/javascript'%3E%3C/script%3E"));

</script>
</body>
</html>
